.class Lcom/xingbook/park/activity/cu;
.super Landroid/webkit/WebViewClient;


# instance fields
.field final synthetic a:Lcom/xingbook/park/activity/VideoPlayWebActivity;


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/VideoPlayWebActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/activity/cu;->a:Lcom/xingbook/park/activity/VideoPlayWebActivity;

    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
    .locals 4

    iget-object v0, p0, Lcom/xingbook/park/activity/cu;->a:Lcom/xingbook/park/activity/VideoPlayWebActivity;

    invoke-static {v0}, Lcom/xingbook/park/activity/VideoPlayWebActivity;->a(Lcom/xingbook/park/activity/VideoPlayWebActivity;)Landroid/webkit/WebView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "<!DOCTYPE html><html><head><meta charset=\"utf-8\"/><title>\u51fa\u9519\u4e86:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "</title></head><body><p>\u60a8\u6b63\u5728\u8bbf\u95ee\u9519\u8bef\u7684\u5185\u5bb9</p></body><html>"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "text/html; charset=UTF-8"

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Landroid/webkit/WebView;->loadData(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method
